[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Operators and functions for increased readability of source code:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
With help of preprocessor command #define are following new operators
defined:
#define and .and.
#define or .or.
#define true .t.
#define false .f.
#define cr_lf (chr(13)+chr(10)) //new line
#define NTrim(n) LTrim(Str(n)) //number to string without spc
#define Swap(a,b) Eval({|p|p:=a,a:=b,b:=p})//swap two variables
#define Bell() Tone(400,0.2) //beeps
#define DisableHelp() ReadHelpVar(DISABLE)
#define EnableHelp() ReadHelpVar("")
DisableHelp() disables the help to database fields and menu items;
EnableHelp() it enables.
A logical operator IN defined:
#xtranslate (<var> IN <a>,<b>) => (<a> <= <var> .and. <var> <= <b>)
Source file is Object.ch
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson